package com.hqyj.lyf.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 返回数据时使用的工具类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResultInfo {

    private Integer code; //返回的状态码
    private String msg; //返回的描述信息
    private Object info; //返回的数据

    public ResultInfo(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public ResultInfo(Integer code, Object info) {
        this.code = code;
        this.info = info;
    }
}
